<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
	<link rel="stylesheet" type="text/css" href="../c/animate.css" />
	<style>
		body {
		background-color:transparent;
		}
		/*签到窗口*/
		#t{
			position: fixed;
			top: 0;
			width: 100%;
			height: 100%;
			left:0;
			background-color:rgba(0,0,0,0.9);
			z-index: 1
		}
		#qiandao_msg {
			width: 100%;
			position: fixed;
			top: 50%;
			left: 50%;
			-moz-transform: translate(-50%, -50%);
			-ms-transform: translate(-50%, -50%);
			-webkit-transform: translate(-50%, -50%);
			transform: translate(-50%, -50%);
			z-index: 2;
		}
		.img{
			width: 14rem;
			margin: 0 auto;
			padding: 1rem;
			background: #FFECD0;
			overflow: hidden;
			color: #952217;
			border-radius: 0.45rem;
			background: #fdddb4 url('../i/hongbao/t_by.png');
			background-repeat: no-repeat;
			background-size: 4rem;
			background-position: top right;
			border-radius: 0.65rem;
			padding: 0.3rem;
			color: #7e4621;
			font-size: 0.75rem;
			position: relative;
		}
		.text p{
			color: #952217;
			padding: 0.75rem 0;
		}
		.img .content{
			border: 1px solid #e5c096;
			height: 100%;
			border-radius: 0.65rem;
			padding: 0.75rem;
			text-align: center;
		}
		.img .content h4{
			font-size: 1rem;
			font-weight: bold;
		}
		.btn{
			position: relative;
			height: 2rem;
			overflow: hidden;
			margin-top: 0.75rem;
		}
		.btn img{
			height: 2rem;
			margin: 0 auto;
			text-align: center;
		}
		.btn div{
			position: absolute;
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			text-align: center;
			color: #fdc296;
			font-size: 0.85rem;
			line-height: 2rem;
		}
	</style>
</head>
<body>
	<div id="t"></div>
	<div id="qiandao_msg" class="zhuli">
		<div class="animated">
			<div class="img">
				<div class="content">
					<div class="text">
						<h4>口令已复制</h4>
						<p>好友复制口令后，打开趣味就能给你助力啦~</p>
						<div><img src="../i/hongbao/kouling.png" ></div>
					</div>
					<div class="btn" tapmode onclick="fx_wx()">
						<img src="../i/hongbao/b5.png" >
						<div>去微信黏黏</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript" src="../j/crypto-js.js"></script>
<script type="text/javascript">
	var a
	apiready = function() {
		console.log(_getPrefs('_config').hongbao.hongbao_fuzhi)
		kouling()
	}
	function fx_wx(){
		var wx = api.require('wxPlus');
		wx.shareText({
		    scene: 'session',
		    text: a,
		}, function(ret, err) {

		});
		api.closeFrame();
	}
	function kouling(){
		var iv = CryptoJS.enc.Latin1.parse('www_suxiangw_com');
 		var key = CryptoJS.enc.Latin1.parse('20200217143510WB');
		var encoded = CryptoJS.AES.encrypt(''+_getPrefs('_user').id+'', key, {
		    iv: iv,
		    mode: CryptoJS.mode.CBC,
		    adding: CryptoJS.pad.ZeroPadding
		}).toString()
		a = _getPrefs('_config').hongbao.hongbao_fuzhi.replace("####","##"+encoded+"##");
		console.log(a)
		return encoded;
	}

</script>

</html>
